<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
   
   <meta name="description" content="command line parsing">
    
    <meta name="author" content="John S. Urban" >
    <link rel="icon" href="../favicon.png">

    <title>M_CLI2 &ndash; M_CLI2</title>

    <link href="../css/bootstrap.min.css" rel="stylesheet">
    <link href="../css/pygments.css" rel="stylesheet">
    <link href="../css/font-awesome.min.css" rel="stylesheet">
    <link href="../css/local.css" rel="stylesheet">
    
    <link  href="../tipuesearch/tipuesearch.css" rel="stylesheet">
    
    

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <script src="../js/jquery-2.1.3.min.js"></script>
    <script src="../js/svg-pan-zoom.min.js"></script>

  </head>

  <body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="../index.html">M_CLI2 </a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
        
            <li class="dropdown hidden-xs visible-sm visible-md hidden-lg">
              <a href="#" class="dropdown-toggle"
              data-toggle="dropdown" role="button"
              aria-haspopup="true"
     aria-expanded="false">Contents <span class="caret"></span></a>
        <ul class="dropdown-menu">
          
              
            <li><a href="../lists/files.html">Source Files</a></li>
        
        
        
            <li><a href="../lists/modules.html">Modules</a></li>
        
            
                                
            <li><a href="../lists/procedures.html">Procedures</a></li>
        
               
            <li><a href="../lists/types.html">Derived Types</a></li>
        
        
            <li><a href="../lists/programs.html">Programs</a></li>
        
            </ul>
            </li>


<li class="visible-xs hidden-sm visible-lg"><a href="../lists/files.html">Source Files</a></li>



<li class="visible-xs hidden-sm visible-lg"><a href="../lists/modules.html">Modules</a></li>



<li class="visible-xs hidden-sm visible-lg"><a href="../lists/procedures.html">Procedures</a></li>

                             
<li class="visible-xs hidden-sm visible-lg"><a href="../lists/types.html">Derived Types</a></li>


<li class="visible-xs hidden-sm visible-lg"><a href="../lists/programs.html">Programs</a></li>

          </ul>
        
        <form action="../search.html" class="navbar-form navbar-right" role="search">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search" name="q" id="tipue_search_input" autocomplete="off" required>
        </div>
<!--
        <button type="submit" class="btn btn-default">Submit</button>
-->
        </form>
        
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">
    
  
  <div class="row">
    <h1>M_CLI2 
    <small>Module</small>
    
    </h1>
    
<div class="row">
  <div class="col-lg-12">
<div class="well well-sm">
  <ul class="list-inline" style="margin-bottom:0px;display:inline">
     
     
     
     
    
    
     <li><i class="fa fa-list-ol"></i>
       <a data-toggle="tooltip"
    data-placement="bottom" data-html="true"
    title="100.0% of total for modules and submodules.">3057 statements</a>
     </li> 
     
     
     
    <li><i class="fa fa-code"></i><a href="../src/M_CLI2.F90"> Source File</a></li>
     
     
  </ul>
  <ol class="breadcrumb in-well text-right">
  
    
     <li><a href='../sourcefile/m_cli2.f90.html'>M_CLI2.F90</a></li>
    
  
     <li class="active">M_CLI2</li>
  </ol>
</div>
</div>
</div>
<script>
  $(function () {
  $('[data-toggle="tooltip"]').tooltip()
  })
</script>

  </div>
  
  <div class="row">
    <div class="col-md-3 hidden-xs hidden-sm visible-md visible-lg">
    
<div id="sidebar">
  
<h3>Contents</h3>
 



<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#vars-0">Variables</a></h3></div>
  <div id="vars-0" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-cli_response_file">CLI_RESPONSE_FILE</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-args">args</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-debug_m_cli2">debug_m_cli2</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-remaining">remaining</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-unnamed">unnamed</a>
      
    </div>
  </div>
</div>









<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#inters-0">Interfaces</a></h3></div>
  <div id="inters-0" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-cgets">cgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-dgets">dgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args">get_args</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args_fixed_length">get_args_fixed_length</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args_fixed_size">get_args_fixed_size</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-igets">igets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-lgets">lgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-rgets">rgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-sgets">sgets</a>
      
    </div>
  </div>
</div>





<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#funcs-0">Functions</a></h3></div>
  <div id="funcs-0" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-cget">cget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-dget">dget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-get_subcommand">get_subcommand</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-iget">iget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-lget">lget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-rget">rget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-sget">sget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-specified">specified</a>
      
    </div>
  </div>
</div>



<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#subs-0">Subroutines</a></h3></div>
  <div class="list-group">
    <div id="subs-0" class="panel-collapse collapse">
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-print_dictionary">print_dictionary</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-set_args">set_args</a>
      
    </div>
  </div>
</div>










</div>

    </div>
    
    <div class="col-md-9" id='text'>
    <h2 id="name">NAME</h2>
<div class="codehilite"><pre><span></span><code> M_CLI2(3fm) - [ARGUMENTS::M_CLI2::INTRO] - command line argument
 parsing using a prototype command
 (LICENSE:PD)
</code></pre></div>

<h2 id="synopsis">SYNOPSIS</h2>
<p>Available procedures and variables:</p>
<div class="codehilite"><pre><span></span><code>  use M_CLI2, only : set_args, get_args, unnamed, remaining, args
  use M_CLI2, only : get_args_fixed_length, get_args_fixed_size
  use M_CLI2, only : specified
  ! convenience functions
  use M_CLI2, only : dget, iget, lget, rget, sget, cget
  use M_CLI2, only : dgets, igets, lgets, rgets, sgets, cgets
</code></pre></div>

<h2 id="description">DESCRIPTION</h2>
<div class="codehilite"><pre><span></span><code><span class="nv">Allow</span> <span class="k">for</span> <span class="nv">command</span> <span class="nv">line</span> <span class="nv">parsing</span> <span class="nv">much</span> <span class="nv">like</span> <span class="nv">standard</span> <span class="nv">Unix</span> <span class="nv">command</span> <span class="nv">line</span>
<span class="nv">parsing</span> <span class="nv">using</span> <span class="nv">a</span> <span class="nv">simple</span> <span class="nv">prototype</span>.

<span class="nv">Typically</span> <span class="nv">one</span> <span class="k">call</span> <span class="nl">to</span> <span class="nv">SET_ARGS</span><span class="ss">(</span><span class="mi">3</span><span class="nv">f</span><span class="ss">)</span> <span class="nv">is</span> <span class="nv">made</span> <span class="nv">to</span> <span class="nv">define</span> <span class="nv">the</span> <span class="nv">command</span>
<span class="nv">arguments</span>, <span class="nv">set</span> <span class="nv">default</span> <span class="nv">values</span> <span class="nv">and</span> <span class="nv">parse</span> <span class="nv">the</span> <span class="nv">command</span> <span class="nv">line</span>. <span class="k">Then</span> <span class="nv">a</span> <span class="nv">call</span>
<span class="nv">is</span> <span class="nv">made</span> <span class="nv">to</span> <span class="nv">the</span> <span class="nv">convenience</span> <span class="nv">commands</span> <span class="nv">based</span> <span class="nv">on</span> <span class="nv">GET_ARGS</span><span class="ss">(</span><span class="mi">3</span><span class="nv">f</span><span class="ss">)</span> <span class="k">for</span> <span class="nv">each</span>
<span class="nv">command</span> <span class="nv">keyword</span> <span class="nv">to</span> <span class="nv">obtain</span> <span class="nv">the</span> <span class="nv">argument</span> <span class="nv">values</span>.

<span class="nv">The</span> <span class="nv">documentation</span> <span class="k">for</span> <span class="nv">SET_ARGS</span><span class="ss">(</span><span class="mi">3</span><span class="nv">f</span><span class="ss">)</span> <span class="nv">and</span> <span class="nv">GET_ARGS</span><span class="ss">(</span><span class="mi">3</span><span class="nv">f</span><span class="ss">)</span> <span class="nv">provides</span> <span class="nv">further</span>
<span class="nv">details</span>.
</code></pre></div>

<h2 id="example">EXAMPLE</h2>
<p>Sample program using type conversion routines</p>
<div class="codehilite"><pre><span></span><code> <span class="nv">program</span> <span class="nv">demo_M_CLI2</span>
 <span class="nv">use</span> <span class="nv">M_CLI2</span>,  <span class="nv">only</span> : <span class="nv">set_args</span>, <span class="nv">get_args</span>
 <span class="nv">use</span> <span class="nv">M_CLI2</span>,  <span class="nv">only</span> : <span class="nv">filenames</span><span class="o">=&gt;</span><span class="nv">unnamed</span>
 <span class="nv">use</span> <span class="nv">M_CLI2</span>,  <span class="nv">only</span> : <span class="nv">get_args_fixed_length</span>, <span class="nv">get_args_fixed_size</span>
 <span class="nv">implicit</span> <span class="nv">none</span>
 <span class="nv">integer</span>                      :: <span class="nv">i</span>
 <span class="nv">integer</span>,<span class="nv">parameter</span>            :: <span class="nv">dp</span><span class="o">=</span><span class="nv">kind</span><span class="ss">(</span><span class="mi">0</span>.<span class="mi">0</span><span class="nv">d0</span><span class="ss">)</span>
 <span class="o">!</span>
 <span class="o">!</span> <span class="nv">DEFINE</span> <span class="nv">ARGS</span>
 <span class="nv">real</span>                         :: <span class="nv">x</span>, <span class="nv">y</span>, <span class="nv">z</span>
 <span class="nv">real</span><span class="ss">(</span><span class="nv">kind</span><span class="o">=</span><span class="nv">dp</span><span class="ss">)</span>,<span class="nv">allocatable</span>    :: <span class="nv">point</span><span class="ss">(</span>:<span class="ss">)</span>
 <span class="nv">logical</span>                      :: <span class="nv">l</span>, <span class="nv">lbig</span>
 <span class="nv">logical</span>,<span class="nv">allocatable</span>          :: <span class="nv">logicals</span><span class="ss">(</span>:<span class="ss">)</span>
 <span class="nv">character</span><span class="ss">(</span><span class="nv">len</span><span class="o">=</span>:<span class="ss">)</span>,<span class="nv">allocatable</span> :: <span class="nv">title</span>    <span class="o">!</span> <span class="nv">VARIABLE</span> <span class="nv">LENGTH</span>
 <span class="nv">character</span><span class="ss">(</span><span class="nv">len</span><span class="o">=</span><span class="mi">40</span><span class="ss">)</span>            :: <span class="nv">label</span>    <span class="o">!</span> <span class="nv">FIXED</span> <span class="nv">LENGTH</span>
 <span class="nv">real</span>                         :: <span class="nv">p</span><span class="ss">(</span><span class="mi">3</span><span class="ss">)</span>     <span class="o">!</span> <span class="nv">FIXED</span> <span class="nv">SIZE</span>
 <span class="nv">logical</span>                      :: <span class="nv">logi</span><span class="ss">(</span><span class="mi">3</span><span class="ss">)</span>  <span class="o">!</span> <span class="nv">FIXED</span> <span class="nv">SIZE</span>
 <span class="o">!</span>
 <span class="o">!</span> <span class="nv">DEFINE</span> <span class="nv">AND</span> <span class="nv">PARSE</span> <span class="ss">(</span><span class="nv">TO</span> <span class="nv">SET</span> <span class="nv">INITIAL</span> <span class="nv">VALUES</span><span class="ss">)</span> <span class="nv">COMMAND</span> <span class="nv">LINE</span>
 <span class="o">!</span>   <span class="nv">o</span> <span class="nv">set</span> <span class="nv">a</span> <span class="nv">value</span> <span class="k">for</span> <span class="nv">all</span> <span class="nv">keywords</span>.
 <span class="o">!</span>   <span class="nv">o</span> <span class="nv">double</span><span class="o">-</span><span class="nv">quote</span> <span class="nv">strings</span>
 <span class="o">!</span>   <span class="nv">o</span> <span class="nv">set</span> <span class="nv">all</span> <span class="nv">logical</span> <span class="nv">values</span> <span class="nv">to</span> <span class="nv">F</span> <span class="nv">or</span> <span class="nv">T</span>.
 <span class="o">!</span>   <span class="nv">o</span> <span class="nv">value</span> <span class="nv">delimiter</span> <span class="nv">is</span> <span class="nv">comma</span>, <span class="nv">colon</span>, <span class="nv">or</span> <span class="nv">space</span>
 <span class="k">call</span> <span class="nl">set_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">                         &amp;</span>
         <span class="o">&amp;</span> <span class="o">-</span><span class="nv">x</span> <span class="mi">1</span> <span class="o">-</span><span class="nv">y</span> <span class="mi">2</span> <span class="o">-</span><span class="nv">z</span> <span class="mi">3</span>                <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">-</span><span class="nv">p</span> <span class="o">-</span><span class="mi">1</span> <span class="o">-</span><span class="mi">2</span> <span class="o">-</span><span class="mi">3</span>                   <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">--</span><span class="nv">point</span> <span class="mi">11</span>.<span class="mi">11</span>, <span class="mi">22</span>.<span class="mi">22</span>, <span class="mi">33</span>.<span class="mi">33</span><span class="nv">e0</span> <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">--</span><span class="nv">title</span> <span class="s2">&quot;</span><span class="s">my title</span><span class="s2">&quot;</span> <span class="o">-</span><span class="nv">l</span> <span class="nv">F</span> <span class="o">-</span><span class="nv">L</span> <span class="nv">F</span>  <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">--</span><span class="nv">logicals</span>  <span class="nv">F</span> <span class="nv">F</span> <span class="nv">F</span> <span class="nv">F</span> <span class="nv">F</span>         <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">-</span><span class="nv">logi</span> <span class="nv">F</span> <span class="nv">T</span> <span class="nv">F</span>                   <span class="o">&amp;</span>
         <span class="o">&amp;</span> <span class="o">--</span><span class="nv">label</span> <span class="s2">&quot;</span><span class="s"> </span><span class="s2">&quot;</span> <span class="o">&amp;</span>
         <span class="o">!</span> <span class="nv">note</span> <span class="nv">space</span> <span class="nv">between</span> <span class="nv">quotes</span> <span class="nv">is</span> <span class="nv">required</span>
         <span class="o">&amp;</span> <span class="s1">&#39;</span><span class="s">)</span>
 <span class="o">!</span> <span class="nv">ASSIGN</span> <span class="nv">VALUES</span> <span class="nv">TO</span> <span class="nv">ELEMENTS</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">x</span><span class="s1">&#39;</span>,<span class="nv">x</span><span class="ss">)</span>         <span class="o">!</span> <span class="nv">SCALARS</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">y</span><span class="s1">&#39;</span>,<span class="nv">y</span><span class="ss">)</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">z</span><span class="s1">&#39;</span>,<span class="nv">z</span><span class="ss">)</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">l</span><span class="s1">&#39;</span>,<span class="nv">l</span><span class="ss">)</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">L</span><span class="s1">&#39;</span>,<span class="nv">lbig</span><span class="ss">)</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">title</span><span class="s1">&#39;</span>,<span class="nv">title</span><span class="ss">)</span> <span class="o">!</span> <span class="nv">ALLOCATABLE</span> <span class="nv">STRING</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">point</span><span class="s1">&#39;</span>,<span class="nv">point</span><span class="ss">)</span> <span class="o">!</span> <span class="nv">ALLOCATABLE</span> <span class="nv">ARRAYS</span>
 <span class="k">call</span> <span class="nl">get_args</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">logicals</span><span class="s1">&#39;</span>,<span class="nv">logicals</span><span class="ss">)</span>
 <span class="o">!</span>
 <span class="o">!</span> <span class="k">for</span> <span class="nv">NON</span><span class="o">-</span><span class="nv">ALLOCATABLE</span> <span class="nv">VARIABLES</span>

 <span class="o">!</span> <span class="k">for</span> <span class="nv">non</span><span class="o">-</span><span class="nv">allocatable</span> <span class="nv">string</span>
 <span class="k">call</span> <span class="nl">get_args_fixed_length</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">label</span><span class="s1">&#39;</span>,<span class="nv">label</span><span class="ss">)</span>

 <span class="o">!</span> <span class="k">for</span> <span class="nv">non</span><span class="o">-</span><span class="nv">allocatable</span> <span class="nv">arrays</span>
 <span class="k">call</span> <span class="nl">get_args_fixed_size</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">p</span><span class="s1">&#39;</span>,<span class="nv">p</span><span class="ss">)</span>
 <span class="k">call</span> <span class="nl">get_args_fixed_size</span><span class="ss">(</span><span class="s1">&#39;</span><span class="s">logi</span><span class="s1">&#39;</span>,<span class="nv">logi</span><span class="ss">)</span>
 <span class="o">!</span>
 <span class="o">!</span> <span class="nv">USE</span> <span class="nv">VALUES</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">x=</span><span class="s1">&#39;</span>,<span class="nv">x</span>, <span class="s1">&#39;</span><span class="s">y=</span><span class="s1">&#39;</span>,<span class="nv">y</span>, <span class="s1">&#39;</span><span class="s">z=</span><span class="s1">&#39;</span>,<span class="nv">z</span>, <span class="nv">x</span><span class="o">+</span><span class="nv">y</span><span class="o">+</span><span class="nv">z</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">p=</span><span class="s1">&#39;</span>,<span class="nv">p</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">point=</span><span class="s1">&#39;</span>,<span class="nv">point</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">title=</span><span class="s1">&#39;</span>,<span class="nv">title</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">label=</span><span class="s1">&#39;</span>,<span class="nv">label</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">l=</span><span class="s1">&#39;</span>,<span class="nv">l</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">L=</span><span class="s1">&#39;</span>,<span class="nv">lbig</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">logicals=</span><span class="s1">&#39;</span>,<span class="nv">logicals</span>
 <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="o">*</span><span class="ss">)</span><span class="s1">&#39;</span><span class="s">logi=</span><span class="s1">&#39;</span>,<span class="nv">logi</span>
 <span class="o">!</span>
 <span class="o">!</span> <span class="nv">unnamed</span> <span class="nv">strings</span>
 <span class="o">!</span>
 <span class="k">if</span><span class="ss">(</span><span class="nv">size</span><span class="ss">(</span><span class="nv">filenames</span><span class="ss">)</span>.<span class="nv">gt</span>.<span class="mi">0</span><span class="ss">)</span><span class="k">then</span>
    <span class="nv">write</span><span class="ss">(</span><span class="o">*</span>,<span class="s1">&#39;</span><span class="s">(i6.6,3a)</span><span class="s1">&#39;</span><span class="ss">)(</span><span class="nv">i</span>,<span class="s1">&#39;</span><span class="s">[</span><span class="s1">&#39;</span>,<span class="nv">filenames</span><span class="ss">(</span><span class="nv">i</span><span class="ss">)</span>,<span class="s1">&#39;</span><span class="s">]</span><span class="s1">&#39;</span>,<span class="nv">i</span><span class="o">=</span><span class="mi">1</span>,<span class="nv">size</span><span class="ss">(</span><span class="nv">filenames</span><span class="ss">))</span>
 <span class="k">endif</span>
 <span class="o">!</span>
 <span class="k">end</span> <span class="nv">program</span> <span class="nv">demo_M_CLI2</span>
</code></pre></div>

<h2 id="author">AUTHOR</h2>
<div class="codehilite"><pre><span></span><code> John S. Urban, 2019
</code></pre></div>

<h2 id="license">LICENSE</h2>
<div class="codehilite"><pre><span></span><code> Public Domain
</code></pre></div>
      <br>
    
  
    <div class="panel panel-default">
      <div class="panel-heading">
  <h3 class="panel-title">Uses</h3>
      </div>
      <ul class="list-group">
      
      <li class="list-group-item">
  <ul class="list-inline">
    
    <li><a href="https://gcc.gnu.org/onlinedocs/gfortran/ISO_005fFORTRAN_005fENV.html">iso_fortran_env</a></li>
    
  </ul>
      </li>
      
      
      
      </ul>
    </div>
    

    
    

    <br>

    <section class="visible-xs visible-sm hidden-md">
      
<h3>Contents</h3>
 



<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#vars-1">Variables</a></h3></div>
  <div id="vars-1" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-cli_response_file">CLI_RESPONSE_FILE</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-args">args</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-debug_m_cli2">debug_m_cli2</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-remaining">remaining</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#variable-unnamed">unnamed</a>
      
    </div>
  </div>
</div>









<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#inters-1">Interfaces</a></h3></div>
  <div id="inters-1" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-cgets">cgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-dgets">dgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args">get_args</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args_fixed_length">get_args_fixed_length</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-get_args_fixed_size">get_args_fixed_size</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-igets">igets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-lgets">lgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-rgets">rgets</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#interface-sgets">sgets</a>
      
    </div>
  </div>
</div>





<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#funcs-1">Functions</a></h3></div>
  <div id="funcs-1" class="panel-collapse collapse">
    <div class="list-group">
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-cget">cget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-dget">dget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-get_subcommand">get_subcommand</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-iget">iget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-lget">lget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-rget">rget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-sget">sget</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-specified">specified</a>
      
    </div>
  </div>
</div>



<div class="panel panel-primary">
  <div class="panel-heading text-left"><h3 class="panel-title"><a data-toggle="collapse" href="#subs-1">Subroutines</a></h3></div>
  <div class="list-group">
    <div id="subs-1" class="panel-collapse collapse">
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-print_dictionary">print_dictionary</a>
      
      <a class="list-group-item" href="../module/m_cli2.html#proc-set_args">set_args</a>
      
    </div>
  </div>
</div>










    </section>
    <br class="visible-xs visible-sm hidden-md">

    

    
    <section>
    <h2>Variables</h2>
    
<table class="table table-striped varlist">
<thead><tr><th>Type</th><th>Visibility</th>

<th>Attributes</th><th></th><th>Name</th><th></th><th>Initial</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" id="variable-cli_response_file"></span>logical,</td>
  
  <td>public,</td>
  <td>save</td><td>::</td>
  <td><strong>CLI_RESPONSE_FILE</strong></td><td> =</td><td>.false.</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" id="variable-args"></span>character(len=:),</td>
  
  <td>public,</td>
  <td>allocatable</td><td>::</td>
  <td><strong>args</strong>(:)</td><td></td><td></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" id="variable-debug_m_cli2"></span>logical,</td>
  
  <td>public,</td>
  <td>save</td><td>::</td>
  <td><strong>debug_m_cli2</strong></td><td> =</td><td>.false.</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" id="variable-remaining"></span>character(len=:),</td>
  
  <td>public,</td>
  <td>allocatable</td><td>::</td>
  <td><strong>remaining</strong></td><td></td><td></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" id="variable-unnamed"></span>character(len=:),</td>
  
  <td>public,</td>
  <td>allocatable</td><td>::</td>
  <td><strong>unnamed</strong>(:)</td><td></td><td></td><td></td>
  
</tr>

</tbody>
</table>

    </section>
    <br>
    
    
    
    
    
    <section>
   <h2>Interfaces</h2>
   
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-cgets"></span><h3>public interface <a href='../interface/cgets.html'>cgets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function cgs(n)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>complex,
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function cg()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>complex,
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-dgets"></span><h3>public interface <a href='../interface/dgets.html'>dgets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function dgs(n)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>real(kind=dp),
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function dg()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>real(kind=dp),
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-get_args"></span><h3>public interface <a href='../interface/get_args.html'>get_args</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private subroutine get_anyarray_d(keyword, darray, delimiters)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>keyword</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>real(kind=dp),</td>
  <td>intent(out),</td>
  <td></td>
  
  <td>allocatable</td><td>::</td>
  <td><strong>darray</strong>(:)</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>delimiters</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-get_args_fixed_length"></span><h3>public interface <a href='../interface/get_args_fixed_length.html'>get_args_fixed_length</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private subroutine get_args_fixed_length_a_array(keyword, strings, delimiters)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>keyword</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td></td>
  <td></td>
  
  <td>allocatable</td><td>::</td>
  <td><strong>strings</strong>(:)</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>delimiters</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-get_args_fixed_size"></span><h3>public interface <a href='../interface/get_args_fixed_size.html'>get_args_fixed_size</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private subroutine get_fixedarray_class(keyword, generic, delimiters)
    
    
   
</h3>
    



<p>get_args(3f) and its convenience functions:</p><a href="../proc/get_fixedarray_class.html" class="pull-right"><emph>Read more&hellip;</emph></a>
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>keyword</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>class(*)</td>
  <td></td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>generic</strong>(:)</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>delimiters</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-igets"></span><h3>public interface <a href='../interface/igets.html'>igets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function igs(n)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>integer,
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function ig()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>integer,
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-lgets"></span><h3>public interface <a href='../interface/lgets.html'>lgets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function lgs(n)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>logical,
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function lg()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>logical,
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-rgets"></span><h3>public interface <a href='../interface/rgets.html'>rgets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function rgs(n)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>real,
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function rg()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>real,
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
     
<div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="interface-sgets"></span><h3>public interface <a href='../interface/sgets.html'>sgets</a>
    
  </h3></div>
  
  <ul class="list-group">
  
  
  
    <li class="list-group-item">
    
    
    <h3>
private function sgs(n, delims)
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>delims</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>character(len=:),
  allocatable, (:)</small></h4>
  
    

    </li>
  
    <li class="list-group-item">
    
    
    <h3>
private function sg()
    
    
   
</h3>
    
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>character(len=:),
  allocatable, (:)</small></h4>
  
    

    </li>
  
  
  </ul>
</div>

    
    </section>
  <br>
    

    
    
    
    
     
    <section>
    <h2>Functions</h2>
    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-cget"></span><h3>
public function <a href='../proc/cget.html'>cget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>complex
  </small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-dget"></span><h3>
public function <a href='../proc/dget.html'>dget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>real(kind=dp)
  </small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-get_subcommand"></span><h3>
public function <a href='../proc/get_subcommand.html'>get_subcommand</a>() result(sub)
    
    
   
</h3></div>
  <div class="panel-body">
       
    







<p>Sample program:</p><a href="../proc/get_subcommand.html" class="pull-right"><emph>Read more&hellip;</emph></a>
    
    <h4>Arguments</h4>
    
      <em>None</em>
    
    

  
  
  
  
     <h4>Return Value <small>character(len=:),
  allocatable</small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-iget"></span><h3>
public function <a href='../proc/iget.html'>iget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>integer
  </small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-lget"></span><h3>
public function <a href='../proc/lget.html'>lget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>logical
  </small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-rget"></span><h3>
public function <a href='../proc/rget.html'>rget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>real
  </small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-sget"></span><h3>
public function <a href='../proc/sget.html'>sget</a>(n)
    
    
   
</h3></div>
  <div class="panel-body">
       
    
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>n</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>character(len=:),
  allocatable</small></h4>
  
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-specified"></span><h3>
public impure elemental function <a href='../proc/specified.html'>specified</a>(key)
    
    
   
</h3></div>
  <div class="panel-body">
       
    







<p>Sample program:</p><a href="../proc/specified.html" class="pull-right"><emph>Read more&hellip;</emph></a>
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>key</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  
  
  
  
     <h4>Return Value <small>logical
  </small></h4>
  
    

  </div>
  </div>

    
    </section>
    <br>
    

    
    <section>
    <h2>Subroutines</h2>
    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-print_dictionary"></span><h3>
public subroutine <a href='../proc/print_dictionary.html'>print_dictionary</a>(header, stop)
    
    
   
</h3></div>
  <div class="panel-body">
       
    







<p>Typical usage:</p><a href="../proc/print_dictionary.html" class="pull-right"><emph>Read more&hellip;</emph></a>
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>header</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>logical,</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>stop</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  </div>
  </div>

    
    
  <div class="panel panel-default">
  <div class="panel-heading codesum"><span class="anchor" id="proc-set_args"></span><h3>
public subroutine <a href='../proc/set_args.html'>set_args</a>(prototype, help_text, version_text, string, ierr, errmsg)
    
    
   
</h3></div>
  <div class="panel-body">
       
    







<p>Sample program:</p><a href="../proc/set_args.html" class="pull-right"><emph>Read more&hellip;</emph></a>
    
    <h4>Arguments</h4>
    
      
      
<table class="table table-striped varlist">
<thead><tr><th>Type</th>
<th>Intent</th><th>Optional</th>
<th>Attributes</th><th></th><th>Name</th><th></th></thead>



<tbody>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in)</td>
  <td></td>
  
  <td></td><td>::</td>
  <td><strong>prototype</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>help_text</strong>(:)</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>version_text</strong>(:)</td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=*),</td>
  <td>intent(in),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>string</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>integer,</td>
  <td>intent(out),</td>
  <td>optional</td>
  
  <td></td><td>::</td>
  <td><strong>ierr</strong></td><td></td>
  
</tr>

  
  
  
  
<tr>
  
  <td><span class="anchor" ></span>character(len=:),</td>
  <td>intent(out),</td>
  <td>optional</td>
  
  <td>allocatable</td><td>::</td>
  <td><strong>errmsg</strong></td><td></td>
  
</tr>

</tbody>
</table>

      
    
    

  </div>
  </div>

    
    </section>    
    <br>
    
    
    
    </div>
  </div>

  
    <hr>    
    </div> <!-- /container -->
    <footer>
      <div class="container">
      <div class="row">
        <div class="col-xs-6 col-md-4"><p>&copy; 2022 
                                          </p></div>
        <div class="col-xs-6 col-md-4 col-md-push-4">
          <p class="text-right">
            Documentation generated by 
            <a href="https://github.com/cmacmackin/ford">FORD</a>
             on 2022-06-08 21:13  
          </p>
        </div>
        <div class="col-xs-12 col-md-4 col-md-pull-4"><p class="text-center"> M_CLI2 was developed by John S. Urban</p></div>
      </div>
      <br>
      </div> <!-- /container -->    
    </footer>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
<!--
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
-->
    <script src="../js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../js/ie10-viewport-bug-workaround.js"></script>

    <!-- MathJax JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/x-mathjax-config">
      MathJax.Hub.Config({
        TeX: { extensions: ['AMSmath.js','AMSsymbols.js','noErrors.js','noUndefined.js'], equationNumbers: { autoNumber: 'AMS' } },
        jax: ['input/TeX','input/MathML','output/HTML-CSS'],
        extensions: ['tex2jax.js','mml2jax.js','MathMenu.js','MathZoom.js']
      });
    </script>
    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    
    <script src="../tipuesearch/tipuesearch_content.js"></script>
    <script src="../tipuesearch/tipuesearch_set.js"></script>
    <script src="../tipuesearch/tipuesearch.js"></script>
    
    
  </body>
</html>